const db = require('mongoose');

db
  .connect('mongodb+srv://3047352306:i6mvPG6Ljr0zfmBP@cluster0.etjxk.mongodb.net/Pet')
  .then(() => {
    console.log('数据库连接成功');
  })
  .catch(() => {
    console.log('数据库连接失败');
  })

  module.exports = db
